package com.example.rjb_shoping.config;

/**
 * 静态常量类
 */
public class RjbConstant {
    //秒杀队列主题
    public static final String TOPIC_SECKILL = "topic_seckill";
    //订单队列主题
    public static final String TOPIC_ORDER = "topic_order";


    //秒杀商品缓存key前缀
    public static final String TODAY_SECKILL_KEY = "rjb_shopping:today_seckill";
    //秒杀库存key前缀
    public static final String TODAY_SECKILL_STOCK = "rjb_shopping:stock_seckill:";
    //秒杀用户请求数量队列
    public static final String SECKILL_USER_QUEUE_COUNT = "rjb_shopping:seckill_user_queue_count:";

    //秒杀订单
    public static final String ORDER_FOR_SECKILL = "rjb_shopping:order_seckill:";
    //秒杀订单计数器
    public static final String ORDER_FOR_SECKILL_COUNTER = "rjb_shopping:order_count:";

    //订单号
    public static final String ORDER_ID_INCREMENT_KEY = "rjb_order_no";
    //订单默认值
    public static final long ORDER_ID_INCREMENT_DEFAULT_VALUE = 1;
    //订单序号补位数
    public static final String ORDER_ID_NUM = "0000000";
    //订单号前缀
    public static final String ORDER_PREFIX = "ORD";

    //秒杀打折规则
    public static final String SECKILL_DISCOUNT = "rjb_shopping:discount_rule:";
}
